import _Fetch from '@/server/Fetch'
import { API_POST_CONSULTING } from '@/api/consulting/get_consulting_info'
import { API_POST_ADD_ORDER } from '@/api/consulting/add_consulting_order'
import { API_POST_PAY } from '@/api/order/api'
export async function addOrder_api(params) {
  return await _Fetch(API_POST_ADD_ORDER, {
    ...params,
  })
}

export async function get_current_info_api(id: number) {
  return await _Fetch(API_POST_CONSULTING, {
    therapistId: id,
  })
}
//支付
export async function pay_api(orderId: any) {
  return await _Fetch(API_POST_PAY, {
    sn: orderId,
  })
}
